package generic;
import java.util.*;
public class Genericdetail {
    public static void main(String[] args) {
        List<Integer> list= new ArrayList<Integer>();
        ArrayList<A> all= new ArrayList<A>();
        pig<A> apig=new pig<A>(new A());
        pig<B> bpig=new pig<B>(new B());


        ArrayList<pig> arrayList = new ArrayList<pig>();

        tiger t = new tiger();


        }
}

class tiger<E>{
    E e;
    public tiger(E e){
        this.e=e;
    }
}
class A{

}
class B extends A{

}
class pig<E>{
    E e;
    public pig(E e){
        this.e=e;
    } 
}